Skip to content

test(core): hold the release of a removed agent's connection bookkeeping by its behaviour - #603

Merged
Mearman merged 1 commit into
mainfrom
test/slots-bookkeeping-by-behaviour
Nov 15, 2026
Merged

Mearman merged 1 commit into
mainfrom
test/slots-bookkeeping-by-behaviour

Conversation

@Mearman

@Mearman Mearman commented Nov 15, 2026

Copy link
Copy Markdown
Member

Merging publishes a patch release of agent-comms: the release rules treat every test commit as a patch, and this one changes only a test file, so the published package differs from the last release only in its version and changelog.

The test for the cleanup of a connection's bookkeeping read the slots' private maps. It now holds the behaviour through the public interface: after a record is deleted, the store is cleared, or the connection evicted the record itself, that connection is no longer credited with the record, so it neither counts toward the connection's bound nor lets the connection evict a record of the same id that it did not introduce.

Each case was run against a mutation of the cleanup it covers and fails.

…ing by its behaviour

The cleanup test read the slots' private maps. It now holds the behaviour: after a record is
deleted, cleared or evicted, the connection that introduced it is no longer credited with it
and no longer evicts a record of the same id that it did not introduce.
@Mearman
Mearman marked this pull request as ready for review November 15, 2026 18:03
@Mearman
Mearman merged commit 4fe836f into main Nov 15, 2026
11 checks passed
@Mearman
Mearman deleted the test/slots-bookkeeping-by-behaviour branch November 15, 2026 18:04
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.0.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant